﻿/**
 * @file DlgTp.h
 * @brief Application's Main Window.
 * @see DlgTp
 * @author Micha³ Policht
 */


#ifndef DlgTp_H_
#define DlgTp_H_
#include <QDialog>
#include "ui_dlgtp.h"

/**
 * Application's Main Window.
 */
class DlgTp : public QDialog
{
    Q_OBJECT
private:
    Ui::DlgTp ui;
    //QextSerialPort *port;
protected:
private slots:
    void about();
    void transmitMsg();
    void receiveMsg();
    void appendCR();
    void appendLF();
    void read();
//    void closePort();
//    void openPort();
    void on_clearButton_clicked();
public:
    bool getOneRec(QString * s);
    //static DlgTp* MsgHandler;	///< Set in constructor.
    DlgTp(const QString &title);
    ~DlgTp();
};
#endif /*DlgTp_H_*/

